package com.alibaba.alink.operator.common.timeseries.teststatistics;

import com.alibaba.alink.testutil.AlinkTestBase;
import org.junit.Test;

public class StationaryTestTest extends AlinkTestBase {

	@Test
	public void testKPSS() {
		double[] vals = new double[] {
			64773720895.0, 63768177887.0, 65669166338.0, 64793825281.0, 64588117315.0, 65166563312.0, 62647073814.0,
			63993837900.0, 64628693462.0, 67820260207.0, 68061900597.0, 67941045014.0, 68491165687.0, 68565873994.0,
			69075309053.0, 69870023418.0, 69770195619.0, 72833636969.0, 70753269337.0, 73403734592.0, 73116733307.0,
			76437773587.0, 79645092231.0, 74758238185.0, 74707796046.0, 77569858806.0, 77006234680.0, 77576452787.0,
			79559290773.0, 79423468955.0, 76191429863.0, 80390543991.0, 77610131047.0, 77511612970.0};

		KPSS kpss = StationaryTest.kpss(vals);
		System.out.println(kpss);
	}

}